<template>
    <div>
        <mt-button type="danger" size="large" @click="exit">退出账号</mt-button>
    </div>
</template>

<script>
    import {Toast} from 'mint-ui'

    export default {
        name: "member-container",
        methods:{
            exit(){
                //退出时本地登录状态清空
                localStorage.setItem('login','');
                Toast('退出成功');
                this.$router.push({path:'./login'})
            }
        }
    }
</script>

<style scoped>

</style>